<template>
  <div class="app">
    <h1>我是App组件</h1>
    <Count :addCount="addCount" :count="count" />
  </div>
</template>

<script>
import Count from "./components/Count.vue";
export default {
  components: { Count },
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    addCount() {
      this.count++;
    },
  },
};
</script>

<style scoped>
.app {
  border: 3px solid #aaa;
}
</style>